<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017\10\17 0017
 * Time: 14:08
 */
namespace Home\Controller;
use Think\Controller;

class CommonController extends Controller{
    function _initialize(){
        if(empty($_SESSION['uid'])){
            $this->error("请先登录系统","/login/index",2);
        }
    }
}